package com.kinghood.productcenter.common.model.dao.base;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author KingHood
 * @since 2023-12-20
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("base_product_template_rule")
public class BaseProductTemplateRuleDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Long id;

    /**
     * 模版id
     */
    @TableField("template_id")
    private Long templateId;

    /**
     * 绑定方id
     */
    @TableField("gitem_id")
    private Long gitemId;

    /**
     * 绑定方属性id
     */
    @TableField("attribute_id")
    private Long attributeId;

    /**
     * 绑定方属性code
     */
    @TableField("attribute_code")
    private String attributeCode;

    /**
     * 被绑定方id
     */
    @TableField("bind_gitem_id")
    private Long bindGitemId;

    /**
     * 被绑定方属性id
     */
    @TableField("bind_attribute_id")
    private Long bindAttributeId;

    /**
     * 被绑定方属性code
     */
    @TableField("bind_attribute_code")
    private String bindAttributeCode;

    /**
     * 触发的值，多个用逗号隔开
     */
    @TableField("trigger_value")
    private String triggerValue;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;

    /**
     * 创建人人id
     */
    @TableField("create_user_id")
    private Long createUserId;

    /**
     * 最后修改人id
     */
    @TableField("update_user_id")
    private Long updateUserId;

    /**
     * 是否删除：0未删除；1已删除
     */
    @TableField("is_delete")
    private Integer isDelete;
}
